//
//  YXToastView.h
//  YXImageBrowserDemo
//
//  Created by guo peng huang on 2021/5/18.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (YXToast)

- (void)yx_showHookToast:(NSString *)text;

- (void)yx_showForkToast:(NSString *)text;

- (void)yx_hideToast;

@end

typedef NS_ENUM(NSInteger, YXToastType) {
    YXToastTypeNone,
    YXToastTypeHook,
    YXToastTypeFork
};

@interface YXToastView : UIView

- (void)showWithText:(NSString *)text type:(YXToastType)type;

@end

NS_ASSUME_NONNULL_END
